package org.maggioni.springsandbox.rehearsals.e02annotation.e02jsr250;


import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext(Main.class.getName().replace(".","/")+"-applicationContext.xml");
		applicationContext.registerShutdownHook();
		MyBean myBean = (MyBean) applicationContext.getBean("myBean");
		myBean.show();
	}

}
